import { EntityObjectFactory } from './../entityObjectFactory';
var EntityObject = EntityObjectFactory.GetEntityObjectType();
export class Upload extends EntityObject<Upload>{
    constructor(ctx?) { super(ctx); }
    packId: string = "";
    syncpkg: any = null;
    url: string = "";
    headers: MPJHeader ;
    body: MPJBody ;
    version: any = null;
    createTime: number;
    toString() { return "uploads"; }
}

export interface MPJHeader {
    "mpj-sync-time-expire": number;
    "mpj-sync-terminal-bind-id": string;
    "Content-Type": string;
    "Authorization": string;
    "mpj-sync-resource-version": string;
}

export interface MPJBody {
    id: string;
    type: string;
    name: string;
    terminalId: string;
    userName: string;
    store: { id: string };
    resources: MPJResource[];
    createTime: number;
}

export interface MPJResource {
    id: string;
    uri: string;
    type: string;
}